package com.dx.as.listener;
import android.app.Activity;
import android.content.Context;
import http.IHttpListener;
/**
 * Created by jwaoo on 2017/8/2.
 */

public abstract class IForChatModule {

    private IOptionFromChat iOptionFromChat;
    public abstract String getToken();
    public abstract String getChatUrl();
    public abstract String getRTCUrl();
    public abstract String getIMName();
    public abstract Context getConext();
    public abstract Activity getMainContext();
    public abstract int getIMAcount();
    public abstract void loginChatSystem();
    public abstract void stopChatSystem();
    public abstract void closeChatDb();
    public abstract void startChatting(int friend);
    public abstract void getContactAsy(IHttpListener listener,int uuid);
    public abstract void updateUnReadCount(int count,boolean isByDelete);
    public abstract void onKickedOffline();
    public abstract boolean isBackground();
    public abstract boolean isCurrentActivity(Class<?> cls);
    public abstract Class<?> getCurrentActivity();
    public abstract void gotoUserActivity(int friend);
    public abstract void savePushMsg(String msgData,long time,int friend);
    public void setiOptionFromChat(IOptionFromChat iOptionFromChat) {
        this.iOptionFromChat = iOptionFromChat;
    }

    public IOptionFromChat getiOptionFromChat() {
        return iOptionFromChat;
    }

    public interface IOptionFromChat{
        void loginChatSystem();
        void stopChatSystem();
        void closeChatDb();
        void startChatting(int friend);
        void savePushMsg(String msgData,long time,int friend);
    }
}
